package com.woniu.server.serverImpl;

import com.woniu.dao.MyDao;
import com.woniu.entity.MyData;
import com.woniu.server.MyServer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MyServerImpl implements MyServer {
    @Autowired
    MyDao dataDao;

    @Override
    public List<MyData> getData() {
        return dataDao.selectData();
    }
}
